projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f127b2
)
trivial-httpd: Close stdout & stdin so $() can capture output when daemonized
author
Vivek Dasmohapatra
<vivek@collabora.co.uk>
Thu, 22 Aug 2013 18:43:44 +0000
(19:43 +0100)
committer
Colin Walters
<walters@verbum.org>
Fri, 23 Aug 2013 16:28:37 +0000
(12:28 -0400)
Will be used by tests.
src/ostree/ot-builtin-trivial-httpd.c
patch
|
blob
|
history
diff --git
a/src/ostree/ot-builtin-trivial-httpd.c
b/src/ostree/ot-builtin-trivial-httpd.c
index 178f20c5f35be18d166789d06b4a23fbb156b389..3c8fff9b01760d22db322320767dcb5cf6656799 100644
(file)
--- a/
src/ostree/ot-builtin-trivial-httpd.c
+++ b/
src/ostree/ot-builtin-trivial-httpd.c
@@
-334,6
+334,9
@@
ostree_builtin_trivial_httpd (int argc, char **argv, GFile *repo_path, GCancella
_exit (0);
}
/* Child, continue */
+ /* Daemonising: close stdout/stderr so $() et al work on us */
+ fclose (stdout);
+ fclose (stdin);
}
app->running = TRUE;